package com.myhome.money.ssm.springboot.controller;

import com.myhome.money.ssm.springboot.model.Student;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 许路路
 */
@RestController
public class HomeController {

    private List<Student> getList() {
        List<Student> list = new ArrayList<Student>();

        return list;
    }

    @PostMapping("index")
    public List<Student> index() {
        return getList();
    }

}
